package com.frank;

import com.frank.entity.Blue;
import com.frank.entity.Red;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @Author: huweifeng
 * @Date: 2022/11/27
 * @Description: @ImportSelector注解
 **/
public class MyImportSelector implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        return new String[]{"com.frank.entity.BLue","com.frank.entity.Red"};
    }
}
